# Methods added to this helper will be available to all templates in the application.
module ApplicationHelper
  def _www_dir
    if WWW_DIR.to_s == ''
      return '/'
    else
      return "/#{WWW_DIR}/"
    end
  end

  def mobile_safari?
    request.env["HTTP_USER_AGENT"] =~ /iPhone|iPod|Android/
  end
end
